package com.ruoyi.business.service;

import com.ruoyi.business.domain.HcxPlatformProfit;
import com.ruoyi.business.vo.HcxPlatformProfitVo;
import com.ruoyi.business.bo.HcxPlatformProfitQueryBo;
import com.ruoyi.business.bo.HcxPlatformProfitAddBo;
import com.ruoyi.business.bo.HcxPlatformProfitEditBo;
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 平台收益明细Service接口
 *
 * @author wsdz
 * @date 2022-12-29
 */
public interface IHcxPlatformProfitService extends IServicePlus<HcxPlatformProfit> {
	/**
	 * 查询单个
	 * @return
	 */
	HcxPlatformProfitVo queryById(Long id);

	/**
	 * 查询列表
	 */
    TableDataInfo<HcxPlatformProfitVo> queryPageList(HcxPlatformProfitQueryBo bo);

	/**
	 * 查询列表
	 */
	List<HcxPlatformProfitVo> queryList(HcxPlatformProfitQueryBo bo);

	/**
	 * 根据新增业务对象插入平台收益明细
	 * @param bo 平台收益明细新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(HcxPlatformProfitAddBo bo);

	/**
	 * 根据编辑业务对象修改平台收益明细
	 * @param bo 平台收益明细编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(HcxPlatformProfitEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 导入数据
     *
     * @param hcxPlatformProfitList 排污口水质数据
     * @return String
     */
	String importHcxPlatformProfit(List<HcxPlatformProfitVo> hcxPlatformProfitList);
}
